﻿// -----------------------------------------------------------------------
// <copyright file="ISessionManagerSync.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
// -----------------------------------------------------------------------
#region Usings

using System.ServiceModel;

#endregion

namespace GateShift.Servers.GameServer.Managers.Session.Contracts
{
    /// <summary>
    /// Session Synchronization WebService Interface
    /// </summary>
    [ServiceContract(Namespace = "http://code.GateShift.com/ServiceContracts/2009/05/ISessionManagerSync", Name = "SessionSyncSystem", ConfigurationName = "SessionSyncSystem")]
    public interface ISessionManagerSync
    {
        /// <summary>
        /// Tells the session manager that a client has connected elsewhere
        /// </summary>
        /// <param name="request">RequestSessionDataContract with information about the call</param>
        [OperationContract(Name = "ClientConnected", Action = "clientConnected", IsOneWay = true)]
        void ClientConnected(RequestSessionDataContract request);

        /// <summary>
        /// Tells the session manager that a client has disconnected elsewhere
        /// </summary>
        /// <param name="request">RequestSessionDataContract with information about the call</param>
        [OperationContract(Name = "ClientDisconnected", Action = "clientDisconnected", IsOneWay = true)]
        void ClientDisconnected(RequestSessionDataContract request);

        /// <summary>
        /// Tells the session manager to disconnect the requested client
        /// </summary>
        /// <param name="request">RequestSessionDataContract with information about the call</param>
        [OperationContract(Name = "RequestDisconnect", Action = "requestDisconnect", IsOneWay = true)]
        void RequestDisconnect(RequestSessionDataContract request);
    }
}